package cn.edu.zhku.service.impl;

import cn.edu.zhku.mapper.TokenMapper;
import cn.edu.zhku.pojo.Token;
import cn.edu.zhku.service.TokenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TokenServiceImpl implements TokenService {

    @Autowired
    private TokenMapper tokenMapper;

    @Override
    public Token findByToken(String token) {
        return this.tokenMapper.selectByToken(token);
    }
}
